package com.example.warehousems.dao.model;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Table(name = "storage_buffer")
@Data
@NoArgsConstructor
@AllArgsConstructor
@IdClass(StorageCoKey.class)
public class StorageBuffer {
    @Id
    private String shelf;
    @Id
    private Integer floor;
    @Id
    private Integer number;
    @OneToOne(optional = true, cascade = CascadeType.REMOVE)
    @MapsId
    private Cargo cargo;
    private Integer status;
}